package com.cn.nullframe.controllor;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("toView")
public class ToViewController {

    @RequestMapping(value = "test", method = {RequestMethod.GET})
    public ModelAndView test() {
        ModelAndView mv = new ModelAndView("testVelocity");
        return mv;
    }


    /**
     * 测试闭包
     *
     * @return
     */
    @RequestMapping(value = "testBibao", method = {RequestMethod.GET})
    public ModelAndView testBibao() {
        ModelAndView mv = new ModelAndView("testBibao");
        return mv;
    }
}
